package ren.steve.model.system.bean;

import ren.steve.model.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;

@Data
@ApiModel(description = "系统访问日志")
@TableName("system_access_log")
public class SystemAccessLog extends BaseEntity {

	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "模块标题")
	@TableField("title")
	private String title;

	@ApiModelProperty(value = "业务类型(0:查询,1:新增,2:修改,3:删除,4:导入,5:导出,6:创建任务")
	@TableField("business_type")
	private String businessType;

	@ApiModelProperty(value = "方法名称")
	@TableField("method")
	private String method;

	@ApiModelProperty(value = "请求方式")
	@TableField("request_method")
	private String requestMethod;

	@ApiModelProperty(value = "操作类别(0:后台用户,1:PC用户,2:手机端用户)")
	@TableField("access_type")
	private String accessType;

	@ApiModelProperty(value = "操作人员")
	@TableField("access_name")
	private String accessName;

	@ApiModelProperty(value = "部门名称")
	@TableField("dept_name")
	private String deptName;

	@ApiModelProperty(value = "请求URL")
	@TableField("access_url")
	private String accessUrl;

	@ApiModelProperty(value = "主机地址")
	@TableField("access_ip")
	private String accessIp;

	@ApiModelProperty(value = "请求参数")
	@TableField("access_params")
	private String accessParams;

	@ApiModelProperty(value = "返回参数")
	@TableField("result_params")
	private String resultParams;

	@ApiModelProperty(value = "错误消息")
	@TableField("error_message")
	private String errorMessage;

	@ApiModelProperty(value = "访问时间")
	@TableField("gmt_access")
	private Date gmtAccess;

}